
// CheckIPAddressDlg.h : header file
//

#pragma once
#include "afxwin.h"

enum emNotifyIcon
{
	Create,
	Delete,
};

// CCheckIPAddressDlg dialog
class CCheckIPAddressDlg : public CDialogEx
{
// Construction
public:
	CCheckIPAddressDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	enum { IDD = IDD_CHECKIPADDRESS_DIALOG };

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	CString m_strIP;
	CListBox m_strList;
	CString m_strPath;
	UINT m_unInterval;
	void UpdateIPAddress();
	int m_nIsStart;
	afx_msg void OnBnClickedStart();
	afx_msg void OnBnClickedEnd();
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	unsigned int m_unHour;
	unsigned int m_unMinute;
	unsigned int m_unSecond;
	afx_msg void OnBnClickedButtonSelect();
	afx_msg void OnBnClickedCheckAutorun();
	CButton m_CheckBtn;
	int m_nAutorunTime;
	afx_msg void OnBnClickedCheckNochangemsg();
	bool m_bNotShowNoChangeMessage;
	virtual void OnCancel();
	afx_msg void OnBnClickedButtonChecknow();
	BOOL m_bSingleFile;
	afx_msg void OnBnClickedCheckSinglefile();
	void SetNotifyIcon( emNotifyIcon emNotifyType );
	afx_msg LRESULT OnNotifyIcon(WPARAM wParam, LPARAM lParam);
	afx_msg void OnNotifyShow();
	afx_msg void OnNotifyRun();
	afx_msg void OnNotifyExit();
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
};
